
#include"SingleList.h"


void TestSList1()
{
	SLNode* plist = NULL;
	SLPushBack(&plist, 1);
	SLPushBack(&plist, 2);
	SLPushBack(&plist, 3);

	SLPushBack(&plist, 4);
	SLPushFront(&plist, 5);
	SLPrint(plist);
	//SLPopBack(&plist);
	//SLPopBack(&plist);
	SLPopFront(&plist);
	SLPopFront(&plist);
	SLPrint(plist);
	SLPushFront(&plist, 6);
	SLPushFront(&plist, 7);
	SLPopBack(&plist);
	SLPrint(plist);

	SLPopBack(&plist);
	SLPrint(plist);
	SLPopBack(&plist);
	SLPrint(plist);
	SLPopBack(&plist);
	SLPrint(plist);
	//SLPrint(plist);

	SLPopBack(&plist);
	SLPrint(plist);
	SLPopBack(&plist);
	SLPrint(plist);
}


int main()
{
	TestSList1();

	return 0;
}

